﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Data.SQLite;
using System.Data;
using System.Linq;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Collections.Generic;
using LinqToDB;
using LinqToDB.Mapping;

namespace YMSoft.SqLite.Test
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            // Opens an unencrypted database    
            SQLiteConnection cnn = new SQLiteConnection(@"Data Source=E:\SRC\YmSoft\YmSoft.WPF\YMSoft.SqLite\YMSOFT.db;Password=cy");
            cnn.Open();

            // Encrypts the database. The connection remains valid and usable afterwards.    
            cnn.ChangePassword("");

        }



        [TestMethod]
        public void TestMethod2()
        {
            var db = new YMSOFTDB("conn");
            var a = db.SyUsers.Count();
        }
    }
}
